package com.example.springboot.service;

import com.example.springboot.common.Result;
import com.example.springboot.dto.SolutionAllDTO;
import com.example.springboot.entity.SCollection;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ISCollectionService extends IService<SCollection> {
    int getCount(Integer solutionId);
    List<SolutionAllDTO> getByUser(Integer userId);
    boolean judge(Integer userId, Integer solutionId);
    boolean deleteBySolution(Integer solutionId);
    Result insertCollection(SCollection sCollection);

    Result removeCollection(SCollection sCollection);
}
